//
//  NewsCell.m
//  Xib_课后作业
//
//  Created by sherry on 15/9/27.
//  Copyright (c) 2015年 蓝鸥科技. All rights reserved.
//

#import "NewsCell.h"
#import "NewsData.h"
@implementation NewsCell

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

-(void)setNewsData:(NewsData *)newsData{
    _titleLabel.text = newsData.title;
    _summaryLabel.text = newsData.summary;
    _dateLabel.text = [NSString stringWithFormat:@"发布于:%@",newsData.PUBLISHDATE];
}

@end
